Message

data class Message(val id: String, val realId: Long = 0, val read: ReadStatus, val status: DeliveryStatus, val text: String? = "", val type: MessageType, val date: Instant?, val attachments: List<Attachment>? = null, val buttons: List<Button>? = null)

The message entity.

Constructors

Link copied to clipboard
constructor(id: String, realId: Long = 0, read: ReadStatus, status: DeliveryStatus, text: String? = "", type: MessageType, date: Instant?, attachments: List<Attachment>? = null, buttons: List<Button>? = null)

Properties

Link copied to clipboard

List of message attachments.

Link copied to clipboard
val buttons: List<Button>? = null

List of button for keyboard.

Link copied to clipboard
val date: Instant?

The date of message creating.

Link copied to clipboard
val id: String

Unique message id in library.

Link copied to clipboard
Link copied to clipboard
val realId: Long = 0

Message id from service.

Link copied to clipboard

Delivery status.

Link copied to clipboard
val text: String?

Message text.

Link copied to clipboard

Message type.

Functions

Link copied to clipboard

Is it inbox message. True if message type is MessageType.IN or MessageType.RATING_IN